﻿using TemplatesPrint.DBHelper;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TemplatesPrint.Entitys
{
    [SugarTable("Schemes")]
    public class SchemeEntity : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "名称")]
        public string xName { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "电话")]
        public string Tel { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "地址")]
        public string Address { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "方案ID")]
        public int JoiningSchemeId { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "方案")]
        public string JoiningScheme { get; set; }
        [SugarColumn( ColumnDescription = "金额")]
        public decimal Amount { get; set; }
        
        [SugarColumn(IsNullable = true, ColumnDescription = "加入时间")]
        public DateTime? JoiningTime { get; set; }
        [SugarColumn(IsNullable = true,  ColumnDescription = "直推老师")]
        public string DirectPushTeacher { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "二代老师")]
        public string TwoTeacher { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "一代老师")]
        public string OneTeacher { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "二代理事")]
        public string TwoDirector { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "一代理事")]
        public string OneDirector { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "区域代理")]
        public string RegionalAgent { get; set; }
        [SugarColumn(IsNullable = true, ColumnDescription = "查询字段")]
        public string QryInfo { get; set; }
        [SugarColumn(IsNullable = false, ColumnDescription = "方案类型 加盟店 总代理 腿带肩颈带 新零售")]
        public string SchemeType { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "备注")]
        public string Memo { get; set; }

        [SugarColumn(IsIgnore = true, ColumnDescription = "序号")]
        public int Num { get; set; }

    }
}
